package com.lingyue.entity.module.def.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingyue.entity.dto.CampaignVo;
import com.lingyue.entity.module.def.entity.CampaignEntity;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lizhiyuan
 * @since 2019-12-03
 */
public interface CampaignMapper extends BaseMapper<CampaignEntity> {
    /**
     * 查询符合要求的ES
     * @param campaignEntity
     * @return
     */
    List<CampaignVo> selectCampaignsList(CampaignEntity campaignEntity);

    /**
     * 查询符合要求的活动
     * @param campaignEntity
     * @return
     */
    List<CampaignEntity> selectCampaigns(CampaignEntity campaignEntity);
}
